package pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class WlActivityGiftExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WlActivityGiftExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGiftcodeIsNull() {
            addCriterion("giftCode is null");
            return (Criteria) this;
        }

        public Criteria andGiftcodeIsNotNull() {
            addCriterion("giftCode is not null");
            return (Criteria) this;
        }

        public Criteria andGiftcodeEqualTo(String value) {
            addCriterion("giftCode =", value, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeNotEqualTo(String value) {
            addCriterion("giftCode <>", value, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeGreaterThan(String value) {
            addCriterion("giftCode >", value, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeGreaterThanOrEqualTo(String value) {
            addCriterion("giftCode >=", value, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeLessThan(String value) {
            addCriterion("giftCode <", value, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeLessThanOrEqualTo(String value) {
            addCriterion("giftCode <=", value, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeLike(String value) {
            addCriterion("giftCode like", value, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeNotLike(String value) {
            addCriterion("giftCode not like", value, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeIn(List<String> values) {
            addCriterion("giftCode in", values, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeNotIn(List<String> values) {
            addCriterion("giftCode not in", values, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeBetween(String value1, String value2) {
            addCriterion("giftCode between", value1, value2, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftcodeNotBetween(String value1, String value2) {
            addCriterion("giftCode not between", value1, value2, "giftcode");
            return (Criteria) this;
        }

        public Criteria andGiftnameIsNull() {
            addCriterion("giftName is null");
            return (Criteria) this;
        }

        public Criteria andGiftnameIsNotNull() {
            addCriterion("giftName is not null");
            return (Criteria) this;
        }

        public Criteria andGiftnameEqualTo(String value) {
            addCriterion("giftName =", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameNotEqualTo(String value) {
            addCriterion("giftName <>", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameGreaterThan(String value) {
            addCriterion("giftName >", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameGreaterThanOrEqualTo(String value) {
            addCriterion("giftName >=", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameLessThan(String value) {
            addCriterion("giftName <", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameLessThanOrEqualTo(String value) {
            addCriterion("giftName <=", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameLike(String value) {
            addCriterion("giftName like", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameNotLike(String value) {
            addCriterion("giftName not like", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameIn(List<String> values) {
            addCriterion("giftName in", values, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameNotIn(List<String> values) {
            addCriterion("giftName not in", values, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameBetween(String value1, String value2) {
            addCriterion("giftName between", value1, value2, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameNotBetween(String value1, String value2) {
            addCriterion("giftName not between", value1, value2, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftdescIsNull() {
            addCriterion("giftDesc is null");
            return (Criteria) this;
        }

        public Criteria andGiftdescIsNotNull() {
            addCriterion("giftDesc is not null");
            return (Criteria) this;
        }

        public Criteria andGiftdescEqualTo(String value) {
            addCriterion("giftDesc =", value, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescNotEqualTo(String value) {
            addCriterion("giftDesc <>", value, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescGreaterThan(String value) {
            addCriterion("giftDesc >", value, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescGreaterThanOrEqualTo(String value) {
            addCriterion("giftDesc >=", value, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescLessThan(String value) {
            addCriterion("giftDesc <", value, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescLessThanOrEqualTo(String value) {
            addCriterion("giftDesc <=", value, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescLike(String value) {
            addCriterion("giftDesc like", value, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescNotLike(String value) {
            addCriterion("giftDesc not like", value, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescIn(List<String> values) {
            addCriterion("giftDesc in", values, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescNotIn(List<String> values) {
            addCriterion("giftDesc not in", values, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescBetween(String value1, String value2) {
            addCriterion("giftDesc between", value1, value2, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftdescNotBetween(String value1, String value2) {
            addCriterion("giftDesc not between", value1, value2, "giftdesc");
            return (Criteria) this;
        }

        public Criteria andGiftintegralIsNull() {
            addCriterion("giftIntegral is null");
            return (Criteria) this;
        }

        public Criteria andGiftintegralIsNotNull() {
            addCriterion("giftIntegral is not null");
            return (Criteria) this;
        }

        public Criteria andGiftintegralEqualTo(Integer value) {
            addCriterion("giftIntegral =", value, "giftintegral");
            return (Criteria) this;
        }

        public Criteria andGiftintegralNotEqualTo(Integer value) {
            addCriterion("giftIntegral <>", value, "giftintegral");
            return (Criteria) this;
        }

        public Criteria andGiftintegralGreaterThan(Integer value) {
            addCriterion("giftIntegral >", value, "giftintegral");
            return (Criteria) this;
        }

        public Criteria andGiftintegralGreaterThanOrEqualTo(Integer value) {
            addCriterion("giftIntegral >=", value, "giftintegral");
            return (Criteria) this;
        }

        public Criteria andGiftintegralLessThan(Integer value) {
            addCriterion("giftIntegral <", value, "giftintegral");
            return (Criteria) this;
        }

        public Criteria andGiftintegralLessThanOrEqualTo(Integer value) {
            addCriterion("giftIntegral <=", value, "giftintegral");
            return (Criteria) this;
        }

        public Criteria andGiftintegralIn(List<Integer> values) {
            addCriterion("giftIntegral in", values, "giftintegral");
            return (Criteria) this;
        }

        public Criteria andGiftintegralNotIn(List<Integer> values) {
            addCriterion("giftIntegral not in", values, "giftintegral");
            return (Criteria) this;
        }

        public Criteria andGiftintegralBetween(Integer value1, Integer value2) {
            addCriterion("giftIntegral between", value1, value2, "giftintegral");
            return (Criteria) this;
        }

        public Criteria andGiftintegralNotBetween(Integer value1, Integer value2) {
            addCriterion("giftIntegral not between", value1, value2, "giftintegral");
            return (Criteria) this;
        }

        public Criteria andGiftlimitIsNull() {
            addCriterion("giftLimit is null");
            return (Criteria) this;
        }

        public Criteria andGiftlimitIsNotNull() {
            addCriterion("giftLimit is not null");
            return (Criteria) this;
        }

        public Criteria andGiftlimitEqualTo(Integer value) {
            addCriterion("giftLimit =", value, "giftlimit");
            return (Criteria) this;
        }

        public Criteria andGiftlimitNotEqualTo(Integer value) {
            addCriterion("giftLimit <>", value, "giftlimit");
            return (Criteria) this;
        }

        public Criteria andGiftlimitGreaterThan(Integer value) {
            addCriterion("giftLimit >", value, "giftlimit");
            return (Criteria) this;
        }

        public Criteria andGiftlimitGreaterThanOrEqualTo(Integer value) {
            addCriterion("giftLimit >=", value, "giftlimit");
            return (Criteria) this;
        }

        public Criteria andGiftlimitLessThan(Integer value) {
            addCriterion("giftLimit <", value, "giftlimit");
            return (Criteria) this;
        }

        public Criteria andGiftlimitLessThanOrEqualTo(Integer value) {
            addCriterion("giftLimit <=", value, "giftlimit");
            return (Criteria) this;
        }

        public Criteria andGiftlimitIn(List<Integer> values) {
            addCriterion("giftLimit in", values, "giftlimit");
            return (Criteria) this;
        }

        public Criteria andGiftlimitNotIn(List<Integer> values) {
            addCriterion("giftLimit not in", values, "giftlimit");
            return (Criteria) this;
        }

        public Criteria andGiftlimitBetween(Integer value1, Integer value2) {
            addCriterion("giftLimit between", value1, value2, "giftlimit");
            return (Criteria) this;
        }

        public Criteria andGiftlimitNotBetween(Integer value1, Integer value2) {
            addCriterion("giftLimit not between", value1, value2, "giftlimit");
            return (Criteria) this;
        }

        public Criteria andStarttimeIsNull() {
            addCriterion("startTime is null");
            return (Criteria) this;
        }

        public Criteria andStarttimeIsNotNull() {
            addCriterion("startTime is not null");
            return (Criteria) this;
        }

        public Criteria andStarttimeEqualTo(Date value) {
            addCriterionForJDBCDate("startTime =", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("startTime <>", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeGreaterThan(Date value) {
            addCriterionForJDBCDate("startTime >", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("startTime >=", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeLessThan(Date value) {
            addCriterionForJDBCDate("startTime <", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("startTime <=", value, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeIn(List<Date> values) {
            addCriterionForJDBCDate("startTime in", values, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("startTime not in", values, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("startTime between", value1, value2, "starttime");
            return (Criteria) this;
        }

        public Criteria andStarttimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("startTime not between", value1, value2, "starttime");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeIsNull() {
            addCriterion("expiredTime is null");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeIsNotNull() {
            addCriterion("expiredTime is not null");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeEqualTo(Date value) {
            addCriterionForJDBCDate("expiredTime =", value, "expiredtime");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("expiredTime <>", value, "expiredtime");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeGreaterThan(Date value) {
            addCriterionForJDBCDate("expiredTime >", value, "expiredtime");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("expiredTime >=", value, "expiredtime");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeLessThan(Date value) {
            addCriterionForJDBCDate("expiredTime <", value, "expiredtime");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("expiredTime <=", value, "expiredtime");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeIn(List<Date> values) {
            addCriterionForJDBCDate("expiredTime in", values, "expiredtime");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("expiredTime not in", values, "expiredtime");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("expiredTime between", value1, value2, "expiredtime");
            return (Criteria) this;
        }

        public Criteria andExpiredtimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("expiredTime not between", value1, value2, "expiredtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}